package com.ruiben.mall.config;

public class ErrorConfig {


    //成功
    public static final int SUCCESS = 200;
    public static final String SUCCESS_STR = "success";

    //未知错误
    public static final int UNKNOWN_ERROR = 500;

    //    用户名错误相关
    public static final int USERNAME_NOT_EMPTY_CODE = 201;
    public static final String USERNAME_NOT_EMPTY_MSG = "用户名不能为空";

    //密码错误相关
    public static final int PASSWORD_NOT_EMPTY_CODE = 202;
    public static final String PASSWORD_NOT_EMPTY_MSG = "密码不能为空";

    //昵称错误相关
    public static final int NICKNAME_NOT_EMPTY_CODE = 203;
    public static final String NICKNAME_NOT_EMPTY_MSG = "昵称不能为空";

    //手机号错误相关
    public static final int PHONE_NOT_EMPTY_CODE = 204;
    public static final String PHONE_NOT_EMPTY_MSG = "手机号不能为空";

    //头像错误相关
    public static final int HEADIMG_NOT_EMPTY_CODE = 205;
    public static final String HEADIMG_NOT_EMPTY_MSG = "头像不能为空";

    //注册相关
    public static final int REGISTER_ERROR_CODE = 206;
    public static final String REGISTER_ERROR_STR = "注册失败";

    //用户名已存在
    public static final int USERNAME_EXIST_CODE = 207;
    public static final String USERNAME_EXIST_ERROR_STR = "用户名已存在";


    //手机号已存在
    public static final int PHONE_EXIST_CODE = 208;
    public static final String PHONE_EXIST_ERROR_STR = "手机号已存在";


    /**
     * 登录相关
     * */
    public static final int LOGIN_USERNAME_PASSWORD_EMPTY_CODE = 209;
    public static final String LOGIN_USERNAME_PASSWORD_EMPTY_STR = "用户名或密码不能为空";

    public static final int LOGIN_USERNAME_PASSWORD_ERROR_CODE = 210;
    public static final String LOGIN_USERNAME_PASSWORD_ERROR_STR = "用户名或密码不正确";


    public static final int ID_NOT_EMPTY_CODE = 211;
    public static final String ID_NOT_EMPTY_MSG = "id不能为空";


    public static final int SEX_NOT_EMPTY_CODE = 212;
    public static final String SEX_NOT_EMPTY_MSG = "性别不能为空";

    public static final int EMAIL_NOT_EMPTY_CODE = 213;
    public static final String EMAIL_NOT_EMPTY_MSG = "邮箱不能为空";

    public static final int PHONE_ERROR_CODE = 214;
    public static final String PHONE_ERROR_MSG = "请输入正确的手机号";

    public static final int PASSWORD_ERROR_CODE = 215;
    public static final String PASSWORD_ERROR_MSG = "密码不正确";


    public static final int PASSWORD_DIFFER_ERROR_CODE = 216;
    public static final String PASSWORD_DIFFER_ERROR_MSG= "两次输入的密码不一致";


    public static final int BANNER_IMAGE_NOT_EMPTY_CODE = 217;
    public static final String BANNER_IMAGE_NOT_EMPTY_MSG= "轮播图图片不能为空";

    public static final int BANNER_TITLE_NOT_EMPTY_CODE = 218;
    public static final String BANNER_TITLE_NOT_EMPTY_MSG= "轮播图标题不能为空";

    public static final int BANNER_DESC_NOT_EMPTY_CODE = 219;
    public static final String BANNER_DESC_NOT_EMPTY_MSG= "轮播图描述不能为空";

    public static final int BANNER_TYPE_NOT_EMPTY_CODE = 220;
    public static final String BANNER_TYPE_NOT_EMPTY_MSG= "轮播图类型不能为空";

    public static final int BANNER_ID_NOT_EMPTY_CODE = 221;
    public static final String BANNER_ID_NOT_EMPTY_MSG= "轮播图id不能为空";


    public static final int CART_PRODUCT_EXIST_CODE = 222;
    public static final String CART_PRODUCT_EXIST_MSG = "该商品在购物车已存在";

    public static final int ATTR_NAME_NOT_EMPTY_CODE = 223;
    public static final String ATTR_NAME_NOT_EMPTY_MSG= "属性名称不能为空";

    public static final int TYPE_ID_NOT_EMPTY_CODE = 224;
    public static final String TYPE_ID_NOT_EMPTY_MSG= "类型id不能为空";


    public static final int USER_ID_NOT_EMPTY_CODE = 225;
    public static final String USER_ID_NOT_EMPTY_MSG= "用户id不能为空";

    public static final int ORDER_STATUS_NOT_EMPTY_CODE = 226;
    public static final String ORDER_STATUS_NOT_EMPTY_MSG= "订单状态不能为空";

    public static final int DELIVERY_USERNAME_NOT_EMPTY_CODE = 227;
    public static final String DELIVERY_USERNAME_NOT_EMPTY_MSG= "收件人名称不能为空";

    public static final int DELIVERY_ADDRESS_NOT_EMPTY_CODE = 228;
    public static final String DELIVERY_ADDRESS_NOT_EMPTY_MSG= "收件人地址不能为空";

    public static final int DELIVERY_PHONE_NOT_EMPTY_CODE = 228;
    public static final String DELIVERY_PHONE_NOT_EMPTY_MSG= "收件人地址不能为空";

    public static final int PRODUCT_ID_EMPTY_CODE = 229;
    public static final String PRODUCT_ID_EMPTY_MSG= "收件人地址不能为空";

}
